package org.rcy.framework.api.entity;

import java.io.Serializable;
import java.util.List;

public class PageResult<T> implements Serializable {
    private int pageNo;
    private int pageSize;
    private long recordTotal;
    private List<T> result;

    public PageResult() {
    }

    public PageResult(int pageNo, int pageSize, long recordTotal, List<T> result) {
        this.pageNo = pageNo;
        this.pageSize = pageSize;
        this.recordTotal = recordTotal;
        this.result = result;
    }

    public int getPageNo() {
        return pageNo;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public long getRecordTotal() {
        return recordTotal;
    }

    public void setRecordTotal(int recordTotal) {
        this.recordTotal = recordTotal;
    }

    public List<T> getResult() {
        return result;
    }

    public void setResult(List<T> result) {
        this.result = result;
    }
}
